package dfbz.work;

public class Test07 {
    public static void main(String[] args) {
        add();
        sub();
        mul();
        div();
        remain();
    }
    public static void add(){
        int a=150;
        int b=150;
        System.out.println("a,b的和为:"+(a+b));
    }
    public static void sub(){
        int a=100;
        int b=200;
        System.out.println("a,b的差为:"+(a-b));
    }
    public static void mul(){
        int a=100;
        int b=200;
        System.out.println("a,b的积为:"+(a*b));
    }
    public static void div(){
        int a=100;
        int b=100;
        System.out.println("a,b的商为:"+(a/b));
    }
    public static void remain(){
        int a=5;
        int b=6;
        int c=(a%b);
        System.out.println("两个变量的余数:"+c);
    }
}
